module Handler.CommonRoutes 
       (
       jqueryRoute,  
       glMatrixRoute,
       bootstrapCssRoute,
       bootstrapJsRoute,
       requireJsRoute
       ) where

import Import

jqueryRoute :: Route App
jqueryRoute =
#if PRODUCTION
    StaticR $ js_jquery_1_8_1_min_js
#else
    StaticR $ js_jquery_1_8_1_js
#endif

glMatrixRoute :: Route App
glMatrixRoute =
#if PRODUCTION
    StaticR $ js_gl_matrix_min_js
#else
    StaticR $ js_gl_matrix_js
#endif

bootstrapCssRoute :: Route App
bootstrapCssRoute =
#if PRODUCTION  
    StaticR $ css_bootstrap_min_css
#else
    StaticR $ css_bootstrap_css
#endif

bootstrapJsRoute :: Route App
bootstrapJsRoute =
#if PRODUCTION  
    StaticR $ js_bootstrap_min_js
#else
    StaticR $ js_bootstrap_js
#endif

requireJsRoute :: Route App
requireJsRoute =
#if PRODUCTION  
    StaticR $ js_require_min_js
#else
    StaticR $ js_require_js
#endif

complexRoute :: Route App
complexRoute =
  StaticR $ js_complex_js
